#include<bits/stdc++.h>
using namespace std;

int a[505], b[505], c[505];

int main() {
	string stra, strb;
	cin >> stra >> strb;
	
	// 翻转存储数字类型数据
	for (int i = 0, j = stra.length() - 1; i < stra.length(); i++, j--) {
		a[i] = stra[j] - '0';
	}
	for (int i = 0, j = strb.length() - 1; i < strb.length(); i++, j--) {
		b[i] = strb[j] - '0';
	}
	
	// 相乘后存储原始数据
	for (int i = 0 ; i < stra.length() ; i++) {
		for (int j = 0; j < strb.length(); j++) {
			c[i + j] += a[i] * b[j];
		}
	}

	// 处理进位
	int x = 0;
	for (int i = 0; i < strb.length() + stra.length(); i++) {
		x += c[i];
		c[i] = x % 10;
		x /= 10;
	}
	for (int i = stra.length() + strb.length(); x > 0; i++) {
		x += c[i];
		c[i] = x % 10;
		x /= 10;
	}
	
	// 排除前导零
	int i = 504;
	while (c[i] == 0) {
		i--;
	}
	for (; i >= 0; i--) {
		cout << c[i];
	}

	return 0;
}
